package org.jeecg.modules.arc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.arc.entity.ArcAccount;
import org.jeecg.modules.arc.vo.ArcAccountCusVO;

import java.util.List;

/**
 * @Description: 缴费账户
 * @Author: jeecg-boot
 * @Date:   2022-02-18
 * @Version: V1.0
 */
public interface ArcAccountMapper extends BaseMapper<ArcAccount> {

  /**
   *  带片区和表册的分页查询
   * @param page
   * @param query
   * @return
   */
  public IPage<ArcAccount> pageList(Page page, @Param("query")ArcAccount query);


  public List<ArcAccountCusVO> queryAccount(@Param("accountId") String accountId
          , @Param("cusId") String cusId
          , @Param("code") String code);

  public List<ArcAccount> getAccountByCodeMobile(
          @Param("code") String code,@Param("mobile") String mobile);

  //查询缴费账号微信OPENID信息
  public List<ArcAccount> queryWxInfo(@Param("query")ArcAccount query);

  /**插入月末余额*/
  public void insertAccBalance();

}
